package com.gzhryc.shared_device.oem.code.member;

public enum EMemberBusinessType {

        Normal(1, "普通会员"), FreeMember(2, "白名单会员");

        private Integer index;
        private String note;

        EMemberBusinessType(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
        	EMemberBusinessType[] temp = EMemberBusinessType.values();
            for (int i = 0; i < temp.length; i++) {
            	EMemberBusinessType item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
}
